/*
 * @Description:
 * @Author: william
 * @Date: 2025-09-03 15:46:56
 * @LastEditors: william
 * @LastEditTime: 2025-09-04 10:45:55
 */
const prefix = '/material'
const prefix2 = '/flavour'
const prefix3 = '/materialprocess'

// =====================  食材管理 =====================
// -------------------  修改食材 -------------------
export const apiMaterialUpdate = data => g_https.post(`${prefix}/update`, data)

// -------------------  查询食材详情 -------------------
export const apiMaterialQueryDetail = data =>
  g_https.post(`${prefix}/queryDetail`, data)

// -------------------  查询食材列表 -------------------
export const apiMaterialList = data => g_https.post(`${prefix}/list`, data)

// -------------------  导入食材 -------------------
export const apiMaterialImport = data => g_https.post(`${prefix}/import`, data)

// -------------------  删除食材 -------------------
export const apiMaterialDelete = data => g_https.post(`${prefix}/delete`, data)

// -------------------  新增食材 -------------------
export const apiMaterialCreate = data => g_https.post(`${prefix}/create`, data)

// -------------------  下载导入模板 -------------------
export const apiMaterialDownloadTemplate = data =>
  g_https.get(`${prefix}/downloadImportTemplate`, data)

// =====================  调料管理 =====================
// -------------------  修改调料 -------------------
export const apiFlavourUpdate = data => g_https.post(`${prefix2}/update`, data)

// -------------------  查询调料详情 -------------------
export const apiFlavourQueryDetail = data =>
  g_https.post(`${prefix2}/queryDetail`, data)

// -------------------  查询调料列表 -------------------
export const apiFlavourList = data => g_https.post(`${prefix2}/list`, data)

// -------------------  导入调料 -------------------
export const apiFlavourImport = data => g_https.post(`${prefix2}/import`, data)

// -------------------  删除调料 -------------------
export const apiFlavourDelete = data => g_https.post(`${prefix2}/delete`, data)

// -------------------  新增调料 -------------------
export const apiFlavourCreate = data => g_https.post(`${prefix2}/create`, data)

// ------------------- 查询调料下拉列表 -------------------
export const apiFlavourDropList = data =>
  g_https.post(`${prefix2}/dropList`, data)

// -------------------  下载导入模板 -------------------
export const apiFlavourDownloadTemplate = data =>
  g_https.get(`${prefix2}/downloadImportTemplate`, data)

// =====================  工艺管理 =====================
// -------------------  修改工艺 -------------------
export const apiProcessUpdate = data => g_https.post(`${prefix3}/update`, data)

// -------------------  查询工艺详情 -------------------
export const apiProcessQueryDetail = data =>
  g_https.post(`${prefix3}/queryDetail`, data)

// -------------------  查询工艺列表 -------------------
export const apiProcessList = data => g_https.post(`${prefix3}/list`, data)

// -------------------  批量导入工艺 -------------------
export const apiProcessImport = data => g_https.post(`${prefix3}/import`, data)

// -------------------  查询工艺下拉列表 -------------------
export const apiProcessDropList = data =>
  g_https.post(`${prefix3}/dropList`, data)

// -------------------  删除工艺 -------------------
export const apiProcessDelete = data => g_https.post(`${prefix3}/delete`, data)

// -------------------  新增工艺 -------------------
export const apiProcessCreate = data => g_https.post(`${prefix3}/create`, data)

// -------------------  下载工艺导入模板 -------------------
export const apiProcessDownloadTemplate = data =>
  g_https.get(`${prefix3}/downloadImportTemplate`, data)
